package com.vhdadw.utils;

import org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator;

public class IDUtil {

    private static SnowflakeShardingKeyGenerator shardingKeyGenerator = new SnowflakeShardingKeyGenerator();

    /**
     *  雪花算法生成器
     * @return
     */

    public static Comparable<?> generateSnowFlakeID() {

        return shardingKeyGenerator.generateKey();

    }

}
